package dao;

import bean.pojo.GdDoctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GdDoctorMapper{

    int insert(@Param("pojo") GdDoctor pojo);

    int insertList(@Param("pojos") List< GdDoctor> pojo);

    List<GdDoctor> select();

    List<GdDoctor> selectWithOrder(@Param("condition")String condition);

    /**
     * 通过科室/名字查询医生
     * @param condition
     * @return
     */
    List<GdDoctor> selectByCondition(@Param("column")String column,
                                     @Param("condition") Object condition);

    /**
     * 通过id查询医生信息
     * @param id
     * @return
     */
    GdDoctor selectById(@Param("id")Long id);

    int update(@Param("pojo") GdDoctor pojo);

    /**
     * 修改粉丝数量
     * @param id
     * @param follower
     * @return
     */
    int updateFollower(@Param("id") Long id,
                       @Param("follower")Integer follower);

}
